package net.huashitong.ssydt.money.entity;

import net.huashitong.ssydt.base.entity.LongEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表
 * @author huiyang.yu
 */
public class SsMoneyOrder extends LongEntity {

    private static final long serialVersionUID = -5070095646913629555L;

    private String orderId;//订单id

    private String userId;//用户id

    private BigDecimal orderPrice;//订单金额

    private String orderState;//订单状态 01 未付款 02已付款 03 退款中 04 已退款

    private Date gmtPay;//支付平台支付时间

    private String payType;//支付平台类型

    private String payAccount;//支付平台账户

    private String payOrderId;//支付平台订单号

    private String terminal;//下单来源终端

    private String deviceCode;//设备编码

    private String deviceType;//设备类型	设备的硬件版本

    private String deviceOperation;//设备系统

    private String clientVersion;//软件版本	客户端版本

    private String orderName;//订单名称

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public String getTerminal() {
        return terminal;
    }

    public void setTerminal(String terminal) {
        this.terminal = terminal;
    }

    public Date getGmtPay() {
        return gmtPay;
    }

    public void setGmtPay(Date gmtPay) {
        this.gmtPay = gmtPay;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayAccount() {
        return payAccount;
    }

    public void setPayAccount(String payAccount) {
        this.payAccount = payAccount;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDeviceOperation() {
        return deviceOperation;
    }

    public void setDeviceOperation(String deviceOperation) {
        this.deviceOperation = deviceOperation;
    }

    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }

    public String getPayOrderId() {
        return payOrderId;
    }

    public void setPayOrderId(String payOrderId) {
        this.payOrderId = payOrderId;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    /**
     * 订单状态
     * @author: huiyang.yu
     * @version Revision: 0.0.1
     * @Date: 2016年8月1日
     */
    public static interface orderState {
        /**
         * 未支付
         */
        public static final String UN_PAYMENT ="01";
        /**
         * 已支付
         */
        public static final String PAYMENT ="02";
        /**
         * 退款中
         */
        public static final String REFUND ="03";
        /**
         * 已退款
         */
        public static final String SENDED ="04";
    }

}
